package library_management.operation.impl;

import library_management.book.BookList;
import library_management.operation.IOperation;

public class FindOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("=====================================");
        System.out.println("您当前正在进行查询操作！");
        System.out.println("请输入您要查询的书目：");
        String findBook = scanner.next();
        if(bookList.isContains(findBook))
        {
            System.out.println("存在该书籍！");
        }
        else
        {
            System.out.println("图书馆暂时没有这本书~");
        }
    }
}
